
<% var pageLevelJS = { %>
<%include("/WEB-INF/views/btl/template/include/select2.html"){}%>
<script type="text/javascript">
var settings = {
		 modelDomainFlag:"sys"
		 ,modelName:"组织机构"
		 ,modelFlag:"org"
		 ,key:"${sessionId}" 
		}
</script> 
<script type="text/javascript" src="${ctx}/static/js/sys/org/edit.js"></script>
<%};%> 
<% var layoutParas =
{"title":"","add":isEmpty(data.id),"formId":"applyeditForm","pageLevelJS":pageLevelJS};
layout("/WEB-INF/views/btl/template/backBasicEditFormTemplate.html", layoutParas){ %>
	  <input type="hidden" name="id" value="${data.id}">
      <%if(isEmpty(data.id)){%>
   <input type="hidden" valid="true" name="instanceId" oldval="${data.instanceId}" value="${data.instanceId}">
   <input type="hidden" valid="true" name="pId" oldval="${data.pId}" value="${data.pId}">
   <div class="form-group  col-md-5">
       <label for="name" class="col-sm-4 control-label no-padding-right">上级组织名称:</label>
       <div class="col-sm-8 inline-height ">
			  <input type="text"  value="${data.pName}" class="disabled col-xs-10" disabled="disabled"  name="pName" placeholder="" />
 	    </div> 
   </div>
   <%}else{%>
   <input type="hidden" valid="true" name="instanceId" oldval="${data.instanceId}" value="${data.instanceId}">
   <input type="hidden" valid="true" name="pId" oldval="${data.parent.id}" value="${data.parent.id}">
    <div class="form-group  col-md-5">
	       <label for="name" class="col-sm-4 control-label no-padding-right">上级组织名称:</label>
	       <div class="col-sm-8 inline-height ">
				  <input type="text"  value="${data.parent.name}" class="disabled col-xs-10" disabled="disabled"  name="pName" placeholder="" />
	 	    </div> 
	   </div>
   <%}%>
      <div class="form-group  col-md-5">
	       <label for="name" class="required-before col-sm-4 control-label no-padding-right">组织机构名称:</label>
	       <div class="col-sm-8 inline-height ">
				  <input type="text" value="${data.name}" oldval="${data.name}" class="validate[required,maxSize[50]] col-xs-10" name="name" placeholder="名称" />
	 	    </div> 
	   </div>
	  <div class="form-group col-md-5">
	     <label for="remark" class="col-sm-4 control-label no-padding-right">备注:</label>
	     <div class="col-sm-8 inline-height">
		    <input type="text"  value="${data.remark}" oldval="${data.remark}" class="validate[maxSize[50]] col-xs-10" name="remark" placeholder="备注">
		  </div>
	  </div>	 
<%} %>
